<?php
header('Content-type: ' . $file['Reference']['mime_type']);
header('Content-length: ' . $file['Reference']['file_size']);
header('Content-Disposition: attachment; filename="'. $file['Reference']['file_name'] . '"');
echo $file['Reference']['content'];
?>